#coding=utf-8
#!python.exe

"""

用例代码

#     cd /d D:\python2
#     python.exe D:\py\demo\test.py

#       python.exe  .\dev_test\test.py
   

"""
import os, sys, string
import re




text = "JGood is a handsome boy, he is cool, clever, and so on..."  
m = re.match(r"(\w+)\s", text)  

if m:  
    print m.group(0), '\n', m.group(1)  
else:  
    print 'not match'  